﻿<UserControl x:Class="Silverlight.Navigation.Controls.Browser"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:nav="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    xmlns:local="clr-namespace:Silverlight.Navigation.Controls"
    Name="BrowserControl" Loaded="BrowserControl_Loaded">
    <Grid x:Name="LayoutRoot" Background="Transparent">

        <StackPanel>

            <Border Background="Transparent" BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4" x:Name="NavigationToolbarBorder" Margin="2,2,2,2" >
                <local:NavigationToolbar x:Name="NavigationToolbar" IsExpanded="False" Margin="2,2,2,2" GoBack="NavigationToolbar_GoBack"  GoForward="NavigationToolbar_GoForward" Go="NavigationToolbar_Go"/>
            </Border>
            
            <Border Grid.Row="1" Grid.Column="1" Background="Transparent" Margin="2,2,2,2"
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4" x:Name="ApplicationMapPathBorder">
                <local:ApplicationMapPath x:Name="ApplicationMapPath"
                                          NavigateToHome="ApplicationMapPath_NavigateToHome"
                                          NavigateToMainMenu="ApplicationMapPath_NavigateToMainMenu"
                                          NavigateToSubMenu="ApplicationMapPath_NavigateToSubMenu"/>
            </Border>
            
            <Border Grid.Row="2" Grid.Column="2" Background="Transparent" Margin="2,2,2,2"
                            BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4" x:Name="MenuBorder">
                <local:MainMenu x:Name="MainMenu" Navigate="MainMenu_Navigate" />
            </Border>
            
            <Border Background="Transparent" BorderBrush="#FF000000" BorderThickness="2,2,2,2" CornerRadius="4,4,4,4" Margin="2,2,2,2" Height="450">
                <nav:Frame x:Name="NavigationFrame" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch"  VerticalContentAlignment="Stretch" Navigated="NavigationFrame_Navigated"/>
            </Border>

        </StackPanel>

    </Grid>
</UserControl>